//
//  PaintingScaleItemCell.swift
//  NDAi
//
//  Created by 丸子 on 2024/6/4.
//

import UIKit

class PaintingScaleItemCell: UICollectionViewCell {
    
    lazy var coverIV: UIImageView = {
       let view = UIImageView()
        view.contentMode = .scaleAspectFit
        view.image = UIImage(named: "ai_launch_logo")
        return view
    }()
    
    lazy var titleLb: UILabel = {
       let label = UILabel()
        label.textColor = Theme.color.main
        label.font = UIFont.pingFangSCSemibold(ofSize: 13)
        return label
    }()
   
    override init(frame: CGRect) {
        super.init(frame: frame)
        backgroundColor = .clear
        contentView.backgroundColor = .white
        contentView.allRound(4)
        
        contentView.addSubview(coverIV)
        contentView.addSubview(titleLb)
        coverIV.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.centerY.equalToSuperview().offset(-10)
            
            make.width.height.equalTo(40)
        }
        
        titleLb.snp.makeConstraints { make in
            make.top.equalTo(coverIV.snp.bottom).offset(5)
            make.centerX.equalToSuperview()
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
